package com.dlnu.shoping.shopping.mapper;

import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dlnu.shoping.shopping.entity.Orderlist;
import com.dlnu.shoping.shopping.mapper.provider.SqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

/**
 * (Order)表数据库访问层
 *
 * @author makejava
 * @since 2023-07-02 17:21:34
 */
@Mapper
public interface OrderDao extends BaseMapper<Orderlist> {
    @SelectProvider(type = SqlProvider.class,method = "orderSelectByUseId")
    List<HashMap> search(Integer userId);

    @SelectProvider(type = SqlProvider.class,method = "orderSelectByUseId")
    List<HashMap> add(Integer userId);
}

